package com.ruoyi.consumables.mapper;

import java.util.List;
import com.ruoyi.consumables.domain.ApplyRecord;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

/**
 * 申请记录Mapper接口
 * 
 * @author ruoyi
 * @date 2023-04-22
 */
@Component
public interface ApplyRecordMapper
{
    /**
     * 查询申请记录
     * 
     * @param applyRecordId 申请记录主键
     * @return 申请记录
     */
    public ApplyRecord selectApplyRecordByApplyRecordId(Long applyRecordId);

    /**
     * 查询申请记录列表
     * 
     * @param applyRecord 申请记录
     * @return 申请记录集合
     */
    public List<ApplyRecord> selectApplyRecordList(ApplyRecord applyRecord);

    /**
     * 新增申请记录
     * 
     * @param applyRecord 申请记录
     * @return 结果
     */
    public int insertApplyRecord(ApplyRecord applyRecord);

    /**
     * 修改申请记录
     * 
     * @param applyRecord 申请记录
     * @return 结果
     */
    public int updateApplyRecord(ApplyRecord applyRecord);

    /**
     * 删除申请记录
     * 
     * @param applyRecordId 申请记录主键
     * @return 结果
     */
    public int deleteApplyRecordByApplyRecordId(Long applyRecordId);

    /**
     * 批量删除申请记录
     * 
     * @param applyRecordIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteApplyRecordByApplyRecordIds(String[] applyRecordIds);
}
